﻿using System;
using System.Net;

namespace OnlineLicenseConsumer
{
    public class Consumer
    {
        public string Url = "http://www.qq1800.com/weibee.php?ID={0}";
        public int GetLeftTimes(string id)
        {
            var result = wc.DownloadString(string.Format(Url, id));
            int daysleft;
            bool valid = int.TryParse(result, out daysleft);
            return daysleft;
        }
        static WebClient wc = new WebClient();
    }
}